//封装本地存储存储数据与读取数据方法
//存储数据
export const SET_TOKEN = (token: any) => {
  localStorage.setItem('TOKEN', token)
}
export const SET_Refresh_TOKEN = (refreshToken: any) => {
  localStorage.setItem('RefreshTOKEN', refreshToken)
}
//本地存储获取数据
export const GET_TOKEN = () => {
  return localStorage.getItem('TOKEN')
}


export const GET_Refresh_TOKEN = () => {
  return localStorage.getItem('RefreshTOKEN')
}

//本地存储删除数据方法
export const REMOVE_TOKEN = () => {
  localStorage.removeItem('TOKEN')
}

export const REMOVE_Refresh_TOKEN = () => {
  localStorage.removeItem('RefreshTOKEN')
}